package com.example.mapper;

import com.example.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> find();

    User selectByUsername(String username);

    int add(@Param("id") String id, @Param("username") String username, @Param("password") String password, @Param("realname") String realname);

    int update(User user);

    int delete(String id);
}
